package methodspace;

/**
 * @author zjiajia
 * @date 2023/11/12 16:24
 */
public class Demo23 {
    public static void main(String[] args) {
        String x = "ab";
        String s = new String("a" ) + new String("b");

        String  s2 = s.intern();

        System.out.println(s2 == x);
        System.out.println(s == x);

    }
}
